<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>用户信息</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
 
    <script> 
		function callbackClean(){
			$('#departname').val('');
			 $('#orgIds').val('');	
		}
		
		function setOrgIds() {}
		$(function(){
			$("#departname").prev().hide();
		});
     </script>
 </head>
<body style="overflow:auto;" >
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="studentController.do?saveUser" beforeSubmit="setOrgIds" tiptype="3">
	<input id="id" name="id" type="hidden" value="${user.id }">
	<table style="" cellpadding="0" cellspacing="1" class="formtable">
		<tr>
			<td align="right" width="25%" nowrap>
                <label class="Validform_label">  <t:mutiLang langKey="common.username"/>:  </label>
            </td>
			<td class="value" width="85%">
                <c:if test="${user.id!=null }"> ${user.userName } </c:if>
                <c:if test="${user.id==null }">
                    <input id="userName" class="inputxt" name="userName" validType="t_s_base_user,userName,id" value="${user.userName }" datatype="s2-10" />
                    <span class="Validform_checktip" style="width:150px;"> <t:mutiLang langKey="username.rang2to10"/></span>
                </c:if>
            </td>
		</tr>
		 
		<tr>
			<td align="right" width="10%" nowrap><label class="Validform_label"> <t:mutiLang langKey="common.real.name"/>: </label></td>
			<td class="value" width="10%">
                <input id="realName" class="inputxt" name="realName" value="${user.realName }" datatype="s2-10">
                <span class="Validform_checktip"><t:mutiLang langKey="fill.realname"/></span>
            </td>
		</tr>
<%-- 		<c:if test="${user.id==null }"> --%>
<!-- 			<tr> -->
<%-- 				<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.password"/>: </label></td> --%>
<!-- 				<td class="value"> -->
<!--                     <input type="password" class="inputxt" value="" name="password" plugin="passwordStrength" datatype="*6-18" errormsg="" /> -->
<!--                     <span class="passwordStrength" style="display: none;"> -->
<%--                         <span><t:mutiLang langKey="common.weak"/></span> --%>
<%--                         <span><t:mutiLang langKey="common.middle"/></span> --%>
<%--                         <span class="last"><t:mutiLang langKey="common.strong"/></span> --%>
<!--                     </span> -->
<%--                     <span class="Validform_checktip"> <t:mutiLang langKey="password.rang6to18"/></span> --%>
<!--                 </td> -->
<!-- 			</tr> -->
<!-- 			<tr> -->
<%-- 				<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.repeat.password"/>: </label></td> --%>
<!-- 				<td class="value"> -->
<%--                     <input id="repassword" class="inputxt" type="password" value="${user.password}" recheck="password" datatype="*6-18" errormsg="两次输入的密码不一致！"> --%>
<%--                     <span class="Validform_checktip"><t:mutiLang langKey="common.repeat.password"/></span> --%>
<!--                 </td> -->
<!-- 			</tr> -->
<%-- 		</c:if> --%>
		 
		<tr>
				<td align="right">
					<label class="Validform_label">
						学号:
					</label>
				</td>
				<td class="value">
				     <input id="staffNo" name="staffNo" type="text" style="width: 150px" class="inputxt"  datatype="*"
					     	nullmsg="请输入学号！"  onkeypress="specialTextValidate()" value="${user.staffNo}"
				    	>
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">学号</label>
				</td>
		</tr>
		<tr>
					<td align="right">
						<label class="Validform_label">
							性别:
						</label>
					</td>
					<td class="value">
							  <t:dictSelect field="sex" type="radio"
									typeGroupCode="sex" defaultVal="${user.sex}" hasLabel="false"  title="性别"></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">性别</label>
						</td>
		 </tr>
		 <tr>
					<td align="right">
						<label class="Validform_label">
							生日:
						</label>
					</td>
					<td class="value">
					     	<input id="birthday" name="birthday" type="text" style="width: 150px" class="inputxt" 
					     	value="<fmt:formatDate pattern='yyyy-MM-dd' value='${user.birthday }'/>">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">生日</label>
						</td>
				</tr>
				 
				<tr>
					<td align="right">
						<label class="Validform_label">
							专业:
						</label>
					</td>
					<td class="value"> 
                	     <input id="majorId" name="majorId" type="hidden"   value="${user.major.id}">               
					     <input id="majorName" name="majorName" type="text"  value="${user.major.majorName}"
					     style="width: 150px" class="inputxt" readonly="readonly" datatype="*" nullmsg="请选择专业">
					     <t:choose hiddenName="majorId" hiddenid="id" url="dictMajorController.do?goSelect" name="majorList"
                          icon="icon-search" title="选择专业" textname="majorName" isclear="false" isInit="true"></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">专业</label> 
					</td>
				</tr>
			 	<tr>
					<td align="right">
						<label class="Validform_label">
							系别:
						</label>
					</td>
					<td class="value">
 					     <input id="seriesId" name="seriesId" type="hidden"   value="${user.series.id}">               
					     <input id="seriesName"  type="text" style="width: 150px" value="${user.series.seriesName}"
					      class="inputxt" readonly="readonly" datatype="*" nullmsg="请选择系别">
					     <t:choose hiddenName="seriesId" hiddenid="id" url="dictSeriesController.do?goSelect" name="seriesList"
                          icon="icon-search" title="选择系别" textname="seriesName" isclear="false" isInit="true"></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">系别</label>
					</td>
				</tr>
				<tr>
					<td align="right" nowrap><label class="Validform_label"> 所在年级: </label></td>
					<td class="value">
		                <input class="inputxt" name="grade" value="${user.grade}" datatype="*" >
		                <span class="Validform_checktip">年级</span>
		            </td>
				</tr>
				<tr>
					<td align="right" nowrap><label class="Validform_label"> 所在班级: </label></td>
					<td class="value">
		                <input class="inputxt" name="className" value="${user.className}" datatype="*" >
		                <span class="Validform_checktip">班级</span>
		            </td>
				</tr>
				  
				 
		 
		<tr>
			<td align="right" nowrap><label class="Validform_label">  <t:mutiLang langKey="common.phone"/>: </label></td>
			<td class="value">
                <input class="inputxt" name="mobilePhone" value="${user.mobilePhone}"  datatype="n" errormsg="手机号码不正确" maxlength="11" ignore="ignore">
                <span class="Validform_checktip"></span>
            </td>
		</tr>
		<%-- <tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.tel"/>: </label></td>
			<td class="value">
                <input class="inputxt" name="officePhone" value="${user.officePhone}" datatype="n" errormsg="办公室电话不正确" ignore="ignore">
                <span class="Validform_checktip"></span>
            </td>
		</tr> --%>
		<tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.mail"/>: </label></td>
			<td class="value">
                <input class="inputxt" name="email" value="${user.email}" datatype="e" errormsg="邮箱格式不正确!" ignore="ignore">
                <span class="Validform_checktip"></span>
            </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 一卡通卡号: </label></td>
			<td class="value">
                <input class="inputxt" name="cardNo" value="${user.cardNo}" maxlength="40">
            </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 英文名: </label></td>
			<td class="value">
                <input class="inputxt" name="englishName" value="${user.englishName}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 姓名拼音: </label></td>
			<td class="value">
                <input class="inputxt" name="py" value="${user.py}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 曾用名: </label></td>
			<td class="value">
                <input class="inputxt" name="oldName" value="${user.oldName}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 出生地: </label></td>
			<td class="value">
                <input class="inputxt" name="birthplace" value="${user.birthplace}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 籍贯: </label></td>
			<td class="value">
                <input class="inputxt" name="jg" value="${user.jg}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 民族: </label></td>
			<td class="value">
                <input class="inputxt" name="nation" value="${user.nation}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 身份证号: </label></td>
			<td class="value">
                <input class="inputxt" name="idNumber" value="${user.idNumber}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 政治面貌: </label></td>
			<td class="value">
                <input class="inputxt" name="zzmm" value="${user.zzmm}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 健康状况: </label></td>
			<td class="value">
                <input class="inputxt" name="jkzk" value="${user.jkzk}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 宗教信仰: </label></td>
			<td class="value">
                <input class="inputxt" name="zjxy" value="${user.zjxy}" > 
             </td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> 血型: </label></td>
			<td class="value">
                <input class="inputxt" name="blood" value="${user.blood}" > 
             </td>
		</tr>
		
	</table>
</t:formvalid>

<script>
 $(document).ready(function(){
 		//给时间控件加上样式
 		$("#birthday").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
  });
 </script>
</body>